import request from '@/utils/request'

// 查询资产管理列表
export function listOaAssets(query) {
  return request({
    url: '/assets/oaAssets/list',
    method: 'get',
    params: query
  })
}

// 查询资产管理详细
export function getOaAssets(id) {
  return request({
    url: '/assets/oaAssets/' + id,
    method: 'get'
  })
}

// 保存资产管理
export function saveOaAssets(data) {
  return request({
    url: '/assets/oaAssets/save',
    method: 'post',
    data: data
  })
}

// 删除资产管理
export function delOaAssets(id) {
  return request({
    url: '/assets/oaAssets/' + id,
    method: 'delete'
  })
}

// 导出资产管理
export function exportOaAssets(query) {
  return request({
    url: '/assets/oaAssets/export',
    method: 'get',
    params: query
  })
}

/**
 * 删除资产管理-使用记录
 */
export function deleteAssetsRecord(id) {
  return request({
    url: '/assets/oaAssets/record/' + id,
    method: 'delete'
  })
}
